#include "number.h"
#include "outputer.h"

Number::Number(void)
{
}

Number::~Number(void)
{
}

int Number::getValue()
{
	return m_num;
}

void Number::setValue(int num)
{
	m_num = num;
}

void Number::setOutputer(Outputer* p_outputer)
{
	m_pOutputer = p_outputer;
}

void Number::output()
{
	if (m_pOutputer)
	{
		// the context would interact with strategy.
		m_pOutputer->output();
	}
}
